public class test2 {
    static void main() {
        int[] arr ={1,2,3,4,5};
       /* System.out.println(arr[1]);
        System.out.println(arr[2]);
        System.out.println(arr[3]);
        System.out.println(arr[4]);
        System.out.println(arr[5]);


        for(int i=0;i<5;i++) {
            System.out.println(arr[i]);
        }
        System.out.println(arr.length);*/
    for (int i = 0; i<5;i++ ) {
        System.out.println(arr[i]);
    }
    }
}
